@import '../../themes/mixins/overlay-backdrop';
@import '../../themes/mixins/layers.scss';

.component {
  align-items: center;
  background-color: rgba(171, 23, 0, 0.98);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: var(--font-regular);
  height: 100vh;
  justify-content: center;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: $dialog-z-index;
  @include overlay-backrop;

  .actionBtn {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #fff;
    border-radius: 5px;
    box-sizing: border-box;
    line-height: 1.36;
    margin-bottom: 22.5px;
    min-height: 50px;
    width: 360px;

    &:hover {
      background-color: #fff;
      color: #ab1700;
      cursor: pointer;
      svg {
        g {
          path {
            stroke: #ab1700;
          }
        }
      }
    }

    .externalLink {
      color: #fff;
      font-family: var(--font-medium);
      &:after {
        background-color: #fff;
      }
    }

    &:hover {
      background-color: #fff;
      .externalLink {
        color: #ab1700;
        &:after {
          background-color: #ab1700;
        }
      }
    }
  }

  .content {
    background-color: rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 30px;
    max-height: 464px;
    max-width: 600px;
    min-width: 600px;
    overflow-y: scroll;
    padding: 12px 20px;
    word-break: break-word;
    &::-webkit-scrollbar-thumb {
      background-color: rgba(255, 255, 255, 0.3);
      outline: none;
      width: 4px;

      &:hover {
        background-color: rgba(255, 255, 255, 0.5);
      }
    }

    h1,
    h2 {
      font-family: var(--font-medium);
      margin-bottom: 6px;
    }

    h1 {
      font-size: 18px;
    }

    h2 {
      font-size: 16px;
    }

    * + h2 {
      margin-top: 16px;
    }

    ol,
    ul {
      list-style: disc;
      margin-left: 20px;
    }

    ol {
      list-style-type: decimal;
    }

    p,
    li {
      color: rgba(255, 255, 255, 0.7);
      font-family: var(--font-regular);
      font-size: 14px;
      line-height: 1.5;
      margin-bottom: 6px;

      strong {
        color: rgba(255, 255, 255, 1);
        font-weight: 500;
      }
    }

    a {
      border-bottom: 1px solid #fff;
      color: #fff;
      text-decoration: none;
    }

    em {
      font-style: italic;
    }
  }

  &.red {
    background-color: var(
      --theme-news-feed-incident-red-overlay-background-color
    );
    color: var(--theme-news-feed-incident-red-overlay-text-color);
    .actionBtn {
      border: 1px solid var(--theme-news-feed-incident-red-overlay-button-color);
      &:hover {
        background-color: var(
          --theme-news-feed-incident-red-overlay-button-color
        );
        color: var(--theme-news-feed-incident-red-overlay-background-color);
        svg {
          g {
            path {
              stroke: var(
                --theme-news-feed-incident-red-overlay-background-color
              );
            }
          }
        }
      }
      .externalLink {
        color: var(--theme-news-feed-incident-red-overlay-button-color);
        &:after {
          background-color: var(
            --theme-news-feed-incident-red-overlay-button-color
          );
        }
      }

      &:hover {
        background-color: var(
          --theme-news-feed-incident-red-overlay-button-color
        );
        .externalLink {
          color: var(--theme-news-feed-incident-red-overlay-background-color);
          &:after {
            background-color: var(
              --theme-news-feed-incident-red-overlay-background-color
            );
          }
        }
      }
    }
    .content {
      &::-webkit-scrollbar-thumb {
        background-color: var(
          --theme-news-feed-incident-red-overlay-scrollbar-thumb-background
        );

        &:hover {
          background-color: var(
            --theme-news-feed-incident-red-overlay-scrollbar-thumb-background-hover
          );
        }
      }
      p,
      li {
        color: var(--theme-news-feed-incident-red-overlay-content-list-color);
        strong {
          color: var(--theme-news-feed-incident-red-overlay-text-color);
        }
      }

      a {
        border-bottom: 1px solid
          var(--theme-news-feed-incident-red-overlay-text-color);
        color: var(--theme-news-feed-incident-red-overlay-text-color);
      }
    }
  }

  &.grey {
    background-color: var(
      --theme-news-feed-incident-grey-overlay-background-color
    );
    color: var(--theme-news-feed-incident-grey-overlay-text-color);
    .actionBtn {
      border: 1px solid
        var(--theme-news-feed-incident-grey-overlay-button-color);
      &:hover {
        background-color: var(
          --theme-news-feed-incident-grey-overlay-button-color
        );
        color: var(--theme-news-feed-incident-grey-overlay-background-color);
        svg {
          g {
            path {
              stroke: var(
                --theme-news-feed-incident-grey-overlay-background-color
              );
            }
          }
        }
      }
      .externalLink {
        color: var(--theme-news-feed-incident-grey-overlay-button-color);
        &:after {
          background-color: var(
            --theme-news-feed-incident-grey-overlay-button-color
          );
        }
      }

      &:hover {
        background-color: var(
          --theme-news-feed-incident-grey-overlay-button-color
        );
        .externalLink {
          color: var(--theme-news-feed-incident-grey-overlay-background-color);
          &:after {
            background-color: var(
              --theme-news-feed-incident-grey-overlay-background-color
            );
          }
        }
      }
    }
    .content {
      &::-webkit-scrollbar-thumb {
        background-color: var(
          --theme-news-feed-incident-grey-overlay-scrollbar-thumb-background
        );

        &:hover {
          background-color: var(
            --theme-news-feed-incident-grey-overlay-scrollbar-thumb-background-hover
          );
        }
      }
      p,
      li {
        color: var(--theme-news-feed-incident-grey-overlay-content-list-color);
        strong {
          color: var(--theme-news-feed-incident-grey-overlay-text-color);
        }
      }

      a {
        border-bottom: 1px solid
          var(--theme-news-feed-incident-grey-overlay-text-color);
        color: var(--theme-news-feed-incident-grey-overlay-text-color);
      }
    }
  }

  &.themeDefault {
    background-color: var(--theme-news-feed-incident-overlay-background-color);
    color: var(--theme-news-feed-incident-overlay-text-color);
    .actionBtn {
      background-color: var(
        --theme-news-feed-incident-overlay-button-background
      );
      border: 1px solid var(--theme-news-feed-incident-overlay-button-color);
      &:hover {
        background-color: var(--theme-news-feed-incident-overlay-button-color);
        color: var(--theme-news-feed-incident-overlay-button-color-hover);
        svg {
          g {
            path {
              stroke: var(
                --theme-news-feed-incident-overlay-button-color-hover
              );
            }
          }
        }
      }
      .externalLink {
        color: var(--theme-news-feed-incident-overlay-button-color);
        &:after {
          background-color: var(
            --theme-news-feed-incident-overlay-button-color
          );
        }
      }

      &:hover {
        background-color: var(--theme-news-feed-incident-overlay-button-color);
        .externalLink {
          color: var(--theme-news-feed-incident-overlay-button-color-hover);
          &:after {
            background-color: var(
              --theme-news-feed-incident-overlay-button-color-hover
            );
          }
        }
      }
    }
    .content {
      background-color: var(
        --theme-news-feed-incident-overlay-content-background
      );
      &::-webkit-scrollbar-thumb {
        background-color: var(
          --theme-news-feed-incident-overlay-scrollbar-thumb-background
        );

        &:hover {
          background-color: var(
            --theme-news-feed-incident-overlay-scrollbar-thumb-background-hover
          );
        }
      }
      p,
      li {
        color: var(--theme-news-feed-incident-overlay-content-list-color);
        strong {
          color: var(--theme-news-feed-incident-overlay-text-color);
        }
      }

      a {
        border-bottom: 1px solid
          var(--theme-news-feed-incident-overlay-text-color);
        color: var(--theme-news-feed-incident-overlay-text-color);
      }
    }
  }

  .date {
    font-family: var(--font-medium);
    font-size: 14px;
    line-height: 1.43;
    margin-bottom: 16px;
    opacity: 0.5;
  }

  .title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 0;
    margin-top: 22.5px;
  }
}
